package zzu.patterns.creational.abstractfactory;

import zzu.patterns.creational.abstractfactory.color.Blue;
import zzu.patterns.creational.abstractfactory.color.Color;
import zzu.patterns.creational.abstractfactory.color.Red;
import zzu.patterns.creational.abstractfactory.shape.Shape;

public class ColorFactory implements AbstractFactory{
    public Color getColor(String color) {
        if ("red".equalsIgnoreCase(color)) {
            return new Red();
        } else if ("blue".equalsIgnoreCase(color)) {
            return new Blue();
        }
        return null;
    }

    public Shape getShape(String shape) {
        return null;
    }
}
